package com.dd.cloud.user.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.dd.cloud.common.annotate.FileSuffix;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Feedback implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 反馈人的id
     */
    @Column(comment = "反馈人的id")
    private Integer userId;

    /**
     * 反馈人的类型
     */
    @Column(comment = "反馈人的类型")
    private Integer userType;

    /**
     * 反馈人名字
     */
    @Column(comment = "反馈人名字")
    private String name;

    /**
     * 联系电话
     */
    @Column(comment = "联系电话")
    private String telephone;

    /**
     * 反馈内容
     */
    @NotEmpty(message = "反馈内容不能为空")
    @Column(comment = "反馈内容")
    private String content;

    /**
     * 图片链接
     */
    @FileSuffix(head = false)
    @Column(length = 1024, comment = "图片链接")
    private String image;

    /**
     * 状态 1正常 -1删除
     */
    @Column(comment = "状态 1正常 -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;
}
